import { RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "index",
    component: () => import("@/layouts/BasicLayout"),
  },
  {
    path: "/auth",
    name: "Login",
    component: () => import("@/layouts/UserLayout"),
    redirect: "/auth/login",
    children: [
      {
        path: "login",
        name: "login",
        component: () => import("@/views/userView/login"),
      },
    ],
  },
  {
    path: "/:pathMath(.*)",
    name: "other",
    component: () => import("@/views/404"),
  },
];
console.log(routes);
